<?php if ( ! defined('BASEPATH')) exit('This file does not run directly. Sorry.'); ?>
<?php
/**
 * Kalaisoo.
 *
 * A lightweight no-framework framework written in PHP.
 *
 * @package Kalaisoo
 * @author $Author: info@sah-company.com $
 */
?>
<?php
$this->view('shared/head');
?>
<!-- Lostpassword -->
<header>
	<h1><?php echo __('user_lostpassword'); ?></h1>
	<nav class="action">
		<ul>
			<li>
				<!-- Link back to login -->
				<a
					href="<?php echo ahref(sprintf('%s/user/login', $language)); ?>"
					class="action">
					<?php echo __('user_goto_login'),"\n"; ?>
				</a>
				<!-- /Link -->
			</li>
		</ul>
	</nav>
</header>
<form
	id="lostpassword"
	method="post"
	action="<?php echo ahref(sprintf('%s/user/lostpassword', $language), true); ?>"
	accept-charset="utf-8"
	autocomplete="off">
	<fieldset>
		<legend><?php echo __('user_lostpassword_legend'); ?></legend>
		<div class="row">
			<label
				for="name"
				class="<?php if (isset($errors['fn_name'])) echo 'error'; ?>">
				<?php echo __('user_email_label'),"\n"; ?>
			</label>
			<input
				id="name"
				type="email"
				name="login[name]"
				size="60"
				value="<?php echo htmlspecialchars($user->email); ?>"
				placeholder="<?php echo htmlspecialchars(__('user_email_placeholder')); ?>"
				required="required"
				autofocus="autofocus"
			/>
		</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('buttons'); ?></legend>
		<input
			type="submit"
			name="submit"
			class="button default"
			value="<?php echo __('user_lostpassword_submit'); ?>"
		/>
	</fieldset>
</form>
<!-- /Lostpassword -->
<?php
$this->view('shared/foot');
?>